<?php
$currentFolder = dirname(__FILE__);


class User {

	public $id;
	public $email;
	public $password;
	public $name;
	public $timezoneOffset;

	function loadFromSQL($row) {
		$this->id = is_null($row['id']) ? null : htmlentities(stripslashes($row['id']));
		$this->email = is_null($row['email']) ? null : htmlentities(stripslashes($row['email']));
		$this->password = is_null($row['password']) ? null : htmlentities(stripslashes($row['password']));
		$this->name = is_null($row['name']) ? null : htmlentities(stripslashes($row['name']));
		$this->timezoneOffset = is_null($row['timezoneOffset']) ? null : htmlentities(stripslashes($row['timezoneOffset']));
	}
}
?>